<?php

	$mysql_conn=array(
        "localhost",
        "root",
        "root",
        "dingdan",
        "3306"
	);

	header("Content-Type: text/html;charset=utf-8");
	$conn=new MYSQLI($mysql_conn['0'],$mysql_conn['1'],$mysql_conn['2'],$mysql_conn['3'],$mysql_conn['4']);

	if ($conn->connect_error<>null) {
	    exit('连接数据库出错,请查看是否安装时填写错误。');
	}

	//链接成功设置mysql字符集

	mysqli_set_charset($conn,"utf-8");

?>